package com.itheima.mapper;

import com.itheima.pojo.entity.Setmeal;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @className SetMealMapper
 */
@Mapper
public interface SetMealMapper {

    @Select("select * from t_setmeal")
    List<Setmeal> selectSetMealList(); // 查询所有套餐

    @Select("select * from t_setmeal where id = #{id}")
    Setmeal selectSetMealById(Integer id); // 根据id查询套餐
}
